<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>synopsis - Work framework Manual &amp; Documentation</title>
  <link rel="stylesheet" href="assets/style.css">
  <link rel="stylesheet" href="assets/sh.css">
  <script src="assets/sh.js"></script>
  <script src="assets/sh.php.js"></script>
</head>
<body onload="sh_highlightDocument();">

  <div id="container">
      <h1>Work framework 手册 &amp; 快速指南</h1>
      <div id="gtoc">
        <p><a href="index.html">索引</a> | <a href="all.html">查看所有</a></p>
      </div>
      <hr>
    <div id="toc">
        <h2>目录内容表</h2>
        <ul>
            <li><a href="#synopsis">简介</a></li>
        </ul>
        <hr />
    </div>
<h2 id="synopsis">简介</h2>

<p>
Work framework php框架是针对<a href="http://doitphp.com">Doitphp</a>的诸多修改而来的，在Doit基础上增加了Config类，Request类，以及Component类，和更强的View类
这些类的作用我们会在后面告诉大家功能和使用方法！
</p>

<p>
下面我们写一个最简单的程序：
</p>
<pre class="sh_php">
class Index_Controller extends Controller
{
    public function indexAction()
    {
        echo 'Hello World';
    }
}
</pre>

<p>To run the server, put the code into a file called <code>example.js</code> and execute
it with the node program</p>

<pre class="sh_js"><code>&gt; node example.js
Server running at http://127.0.0.1:8124/</code></pre>

<p>All of the examples in the documentation can be run similarly.</p>
  </div>

</body>
</html>
